package vip.youngboy.freejump.domain;

import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;
import java.util.Map;

@ApiModel(
        value = "流程操作请求参数",
        description = "统一流程处理接口规范"
)
@Data
public class FlowRequestParam {

    @ApiModelProperty("流程定义id")
    private String defId;

    @ApiModelProperty("流程实例id")
    private String instanceId;

    @ApiModelProperty("流程任务id")
    private String taskId;

    @ApiModelProperty("任务表单id")
    private String formId;

    @ApiModelProperty("处理动作")
    private String action;

    @ApiModelProperty("节点人员设置")
    private JSONObject userOptions;

    @ApiModelProperty("流程业务数据")
    private JSONObject data;

    @ApiModelProperty("表单类型")
    private String formType;

    @ApiModelProperty("流程任务审批意见")
    private String opinion;

    @ApiModelProperty("目标节点")
    private String destination;

    @ApiModelProperty("附件")
    private List<FileInfo> files;

    @ApiModelProperty("流程变量")
    private Map<String, Object> variables;

}
